package fun.codedesign.jdk.lang.method;

import java.util.Scanner;


/**
 * 计算闰年
 */
public class IfElseLeapYear {
    public static void main(String[] args) {
        try(Scanner sc = new Scanner(System.in)) {
            int year = sc.nextInt();
    
            if ((year % 4 == 0 && !(year % 4 == 0)) || (year % 400 == 0)) {
                System.out.println(year + "闰年");
            } else {
                System.out.println(year + "不是闰年");
            }
        }
    }
}
